Skip to content

Conversation

@will-v-king
Copy link

improved:
from
var a = [[[{
a: 'a'
}, {
A: 'A'
}], {
b: 'b'
,B: 'B'
}], [{
c: 'c'
}, {
C: 'C'
}], {
d: 'd'
}, {
D: 'D'
}]

to
var a = [[[{
a: 'a'
}, {
A: 'A'
}], {
b: 'b'
,B: 'B'
}], [{
c: 'c'
}, {
C: 'C'
}], {
d: 'd'
}, {
D: 'D'
}]

improved the format of the result:
Example:
in version 2.2
<code>	var a = [[[{
		a: 'a'
	}, {
		A: 'A'
	}], {
		b: 'b'
		,B: 'B'
	}], [{
		c: 'c'
	}, {
		C: 'C'
	}], {
		d: 'd'
	}, {
		D: 'D'
	}]
</code>
in this version 2.3:
<code>
		var a = [[[{
						a: 'a'
					}, {
						A: 'A'
				}], {
					b: 'b'
					,B: 'B'
			}], [{
					c: 'c'
				}, {
					C: 'C'
			}], {
				d: 'd'
			}, {
				D: 'D'
		}]

</code>
it's good for fold method in VIM when fold method's value is "indent"
version 2.3
@will-v-king will-v-king reopened this Mar 13, 2013
 (function(){})(). may cause a little bug. fixed in this version.
update README, specify the version of the change.
add commit, in 2.3+ code format is more kind for 
:set foldmethod = indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant